﻿Imports TNCBAL

Public Class ucRefreshDatabase

    Private Sub ucRefreshDatabase_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        InitGridView()
        txtUser.Text = GeneralClassBAL._User.UserName
        dtNgayChuyen.Value = Now
    End Sub

    Private Sub btnRefresh_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnRefresh.Click
        MessageBox.Show("Đang cập nhật")
    End Sub

    Public Sub InitGridView()
        gridViewRecentReset.BackgroundColor = System.Drawing.SystemColors.Window
        gridViewRecentReset.AllowUserToAddRows = False
        gridViewRecentReset.AllowUserToDeleteRows = False
        gridViewRecentReset.ReadOnly = True
        gridViewRecentReset.SelectionMode = DataGridViewSelectionMode.CellSelect
        gridViewRecentReset.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.AllCells

        'gridViewRecentReset.Columns(0).HeaderText = "Backup By"
        'gridViewRecentReset.Columns(2).HeaderText = "Backup File"
    End Sub
End Class
